From 79e2f25af775577573f1e9729ae807046ad95afe Mon Sep 17 00:00:00 2001 From: RubaXa Date: Sun, 29 Jun 2014 16:55:01 +0400 Subject: [PATCH] * Ply.dom --- src/Ply.es6 | 12 ++++-------- src/Ply.ui.es6 | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/Ply.es6 b/src/Ply.es6 index a2d43c3..03b1c32 100644 --- a/src/Ply.es6 +++ b/src/Ply.es6 @@ -702,11 +702,6 @@ bodyScroll: false, closeByEsc: true, closeByOverlay: true - }, - - lang: { - ok: 'OK', - cancel: 'Cancel' } }; @@ -1544,9 +1539,10 @@ this.el = el; } - Context.prototype = /** @lends Ply.Context */{ + Context.fn = Context.prototype = /** @lends Ply.Context */{ constructor: Context, + /** * Получить элемент по имени * @param {String} name @@ -1608,8 +1604,8 @@ Ply.dom = { build: _buildDOM, - appendChild: _appendChild, - removeElement: _removeElement, + append: _appendChild, + remove: _removeElement, addEvent: _addEvent, removeEvent: _removeEvent }; diff --git a/src/Ply.ui.es6 b/src/Ply.ui.es6 index cfdc056..7fd7f39 100644 --- a/src/Ply.ui.es6 +++ b/src/Ply.ui.es6 @@ -11,7 +11,7 @@ _extend = Ply.extend, _promise = Ply.promise, _buildDOM = Ply.dom.build, - _appendChild = Ply.dom.appendChild, + _appendChild = Ply.dom.append, _lang = Ply.lang, _toBlock = (block, name) => {