diff options
author | Eric Guzman | 2012-05-17 17:43:05 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-17 17:43:05 -0700 |
commit | 458a4598ed64e3d8c6010a216fb7fb4b3c3c87e7 (patch) | |
tree | ee329e409fe28ae54c894b9e27e82e1f85aefc85 /node_modules/montage/core/shim/object.js | |
parent | 82954f400f7f8609aef0d2bc1f44c9d960907be6 (diff) | |
parent | 52394cdd71bd62c8c109fd135fa146b7183fbd1f (diff) | |
download | ninja-458a4598ed64e3d8c6010a216fb7fb4b3c3c87e7.tar.gz |
Merge branch 'dom-architecture' of github.com:Motorola-Mobility/ninja-internal into CSSPanelUpdates
Conflicts:
js/document/templates/montage-html/default_html.css
js/lib/NJUtils.js
Diffstat (limited to 'node_modules/montage/core/shim/object.js')
-rw-r--r-- | node_modules/montage/core/shim/object.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/node_modules/montage/core/shim/object.js b/node_modules/montage/core/shim/object.js new file mode 100644 index 00000000..3b4f2351 --- /dev/null +++ b/node_modules/montage/core/shim/object.js | |||
@@ -0,0 +1,36 @@ | |||
1 | |||
2 | /** | ||
3 | @external Object | ||
4 | */ | ||
5 | |||
6 | if (!Object.create) { | ||
7 | Object._creator = function _ObjectCreator() { | ||
8 | this.__proto__ = _ObjectCreator.prototype; | ||
9 | }; | ||
10 | Object.create = function(o, properties) { | ||
11 | this._creator.prototype = o || Object.prototype; | ||
12 | //Still needs to add properties.... | ||
13 | return new this._creator; | ||
14 | }; | ||
15 | |||
16 | Object.getPrototypeOf = function(o) { | ||
17 | return o.__proto__; | ||
18 | }; | ||
19 | } | ||
20 | |||
21 | if (!Object.isSealed) { | ||
22 | Object.defineProperty(Object, "isSealed", { | ||
23 | value: function() { | ||
24 | return false; | ||
25 | } | ||
26 | }); | ||
27 | } | ||
28 | |||
29 | if (!Object.seal) { | ||
30 | Object.defineProperty(Object, "seal", { | ||
31 | value: function(object) { | ||
32 | return object; | ||
33 | } | ||
34 | }); | ||
35 | } | ||
36 | |||