-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove content-kit-utils, move mobiledoc renderers to dependencies
refs #278
- Loading branch information
Showing
5 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,18 +32,19 @@ | |
"Matthew Beale <[email protected]> (http://madhatted.com/)" | ||
], | ||
"license": "MIT", | ||
"dependencies": { | ||
"mobiledoc-html-renderer": "^0.2.0", | ||
"mobiledoc-text-renderer": "^0.2.0" | ||
}, | ||
"devDependencies": { | ||
"broccoli": "^0.16.3", | ||
"broccoli-funnel": "^1.0.1", | ||
"broccoli-less-single": "^0.6.0", | ||
"broccoli-merge-trees": "^1.0.0", | ||
"broccoli-multi-builder": "^0.2.8", | ||
"broccoli-test-builder": "^0.2.0", | ||
"content-kit-utils": "^0.2.0", | ||
"conventional-changelog": "^0.5.1", | ||
"jquery": "^2.1.4", | ||
"mobiledoc-html-renderer": "^0.2.0", | ||
"mobiledoc-text-renderer": "^0.2.0", | ||
"testem": "^0.9.11" | ||
}, | ||
"main": "dist/commonjs/mobiledoc-kit/index.js" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
function mergeWithOptions(original, updates, options) { | ||
options = options || {}; | ||
for(var prop in updates) { | ||
if (options.hasOwnProperty(prop)) { | ||
original[prop] = options[prop]; | ||
} else if (updates.hasOwnProperty(prop)) { | ||
original[prop] = updates[prop]; | ||
} | ||
} | ||
return original; | ||
} | ||
|
||
/** | ||
* Merges properties of one object into another | ||
*/ | ||
function merge(original, updates) { | ||
return mergeWithOptions(original, updates); | ||
} | ||
|
||
export { mergeWithOptions, merge }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters