Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update up to changes in 'd'

  • Loading branch information...
commit de9683b05460597e29437b00211f8f13ab47687f 1 parent 33472c4
@medikoo authored
Showing with 6 additions and 4 deletions.
  1. +3 −2 base.js
  2. +3 −2 index.js
View
5 base.js
@@ -1,6 +1,7 @@
'use strict';
-var assign = require('es5-ext/object/assign')
+var getDomjs = require('es5-ext/function/pluck')('_domjs')
+ , assign = require('es5-ext/object/assign')
, forEach = require('es5-ext/object/for-each')
, d = require('d')
, autoBind = require('d/auto-bind')
@@ -116,5 +117,5 @@ Object.defineProperties(Base.prototype, assign({
else if (dom != null) this._current.appendChild(dom);
return dom;
})
- }, '_domjs')))
+ }, { resolveContext: getDomjs })))
}));
View
5 index.js
@@ -1,6 +1,7 @@
'use strict';
-var assign = require('es5-ext/object/assign')
+var getDomjs = require('es5-ext/function/pluck')('_domjs')
+ , assign = require('es5-ext/object/assign')
, mixin = require('es5-ext/object/mixin')
, d = require('d')
, autoBind = require('d/auto-bind')
@@ -43,7 +44,7 @@ module.exports = HTML5 = function (document) {
HTML5.prototype = Object.create(Base.prototype, {
constructor: d(HTML5),
- ns: d(Object.create(Base.prototype.ns, autoBind(elements, '_domjs')))
+ ns: d(Object.create(Base.prototype.ns, autoBind(elements, { resolveContext: getDomjs })))
});
assign(require('./ext'), {
Please sign in to comment.
Something went wrong with that request. Please try again.