From 70c174990eaaf2078baf68615b1907a244f8f06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20F=C3=B6der?= Date: Wed, 15 Feb 2012 17:21:07 +0100 Subject: [PATCH] [BUGFIX] Make sources packager compatible Add Sources directive to package.yml; besides, having set the Required: directive of the submodules to Lightface itself. Fixes: #8 --- Source/LightFace.IFrame.js | 2 +- Source/LightFace.Image.js | 14 +++++++------- Source/LightFace.Request.js | 6 +++--- Source/LightFace.Static.js | 2 +- package.yml | 8 +++++++- 5 files changed, 19 insertions(+), 13 deletions(-) diff --git a/Source/LightFace.IFrame.js b/Source/LightFace.IFrame.js index a132230..9a393f5 100644 --- a/Source/LightFace.IFrame.js +++ b/Source/LightFace.IFrame.js @@ -9,7 +9,7 @@ license: - MIT-style license requires: - core/1.2.1: '*' + - LightFace provides: - LightFace.IFrame diff --git a/Source/LightFace.Image.js b/Source/LightFace.Image.js index 01a5c7e..b81bfc8 100644 --- a/Source/LightFace.Image.js +++ b/Source/LightFace.Image.js @@ -6,10 +6,10 @@ authors: - David Walsh (http://davidwalsh.name) license: - - MIT-style license + - MIT-style license requires: - core/1.2.1: '*' + - LightFace provides: - LightFace.Image @@ -30,10 +30,10 @@ LightFace.Image = new Class({ _resize: function() { //get the largest possible height var maxHeight = window.getSize().y - this.options.pad; - + //get the image size var imageDimensions = document.id(this.image).retrieve('dimensions'); - + //if image is taller than window... if(imageDimensions.y > maxHeight) { this.image.height = maxHeight; @@ -43,10 +43,10 @@ LightFace.Image = new Class({ width: (imageDimensions.x * (maxHeight / imageDimensions.y)).toInt() }); } - + //get rid of styles this.messageBox.setStyles({ height: '', width: '' }); - + //position the box this._position(); }, @@ -89,7 +89,7 @@ LightFace.Image = new Class({ } }); this.image.src = url || this.options.url; - if(title && this.title) this.title.set('html',title); + if(title && this.title) this.title.set('html',title); return this; } }); \ No newline at end of file diff --git a/Source/LightFace.Request.js b/Source/LightFace.Request.js index 78344d6..584fc33 100644 --- a/Source/LightFace.Request.js +++ b/Source/LightFace.Request.js @@ -9,7 +9,7 @@ license: - MIT-style license requires: - core/1.2.1: '*' + - LightFace provides: - LightFace.Request @@ -49,10 +49,10 @@ LightFace.Request = new Class({ this.fireEvent('complete'); }.bind(this) },this.options.request); - + if(title && this.title) this.title.set('html',title); if(!props.url) props.url = url || this.options.url; - + new Request(props).send(); return this; } diff --git a/Source/LightFace.Static.js b/Source/LightFace.Static.js index c879cf6..3224cc5 100644 --- a/Source/LightFace.Static.js +++ b/Source/LightFace.Static.js @@ -9,7 +9,7 @@ license: - MIT-style license requires: - core/1.2.1: '*' + - LightFace provides: - LightFace.Static diff --git a/package.yml b/package.yml index 4575a4d..2f2ed8b 100644 --- a/package.yml +++ b/package.yml @@ -4,4 +4,10 @@ current: 0.96 category: Interface tags: [lightbox,facebook,overlay,modal] docs: http://davidwalsh.name/js/lightface -demo: http://davidwalsh.name/dw-content/lightface.php \ No newline at end of file +demo: http://davidwalsh.name/dw-content/lightface.php +sources: + - "Source/LightFace.js" + - "Source/LightFace.Image.js" + - "Source/LightFace.IFrame.js" + - "Source/LightFace.Static.js" + - "Source/LightFace.Request.js"